home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
DEMON
/
LANGUAGE
/
POT.ARC
/
DDE
/
!mkmain
/
!help
next >
Wrap
Text File
|
1995-05-01
|
1KB
|
28 lines
mkmain
~~~~~~
Purpose: Create a C file that calls the exported PROCEDURE
in the toplevel MODULE of the Oberon program
Setup:
Icon Action/Meaning Default
---- -------------- -------
Module Name of MODULE (typed). nil
Procedure Name of PROCEDURE (typed). nil
Workdir The workdirectory to place the nil
generated C source in
(typed or dragged).
An Oberon program translated by pOt to C needs a main entry point that
calls an exported PROCEDURE from the toplevel MODULE. mkmain is a simple
obey file that uses sed to generate a file with the main entry point.
You need to supply the MODULE- and PROCEDURE-name and the working directory.
The resulting C file will be called
workdir.c.procedure_module
Command line interface:
mkmain module procedure workdir